/**
 * Patch.h
 *
 * Author:
 *   Chris Herbison
 *
 * Description:
 *   Header file for the Patch class.
 */

#ifndef PATCH_H
#define PATCH_H

#include "vecmath.h"
#include "MyColor.h"

class Patch{
public:
	Patch();
	Patch(Point3 _topLeft, Point3 _bottomLeft, Point3 _bottomRight, Point3 _topRight);

	void setPoints(Point3 _topLeft, Point3 _bottomLeft, Point3 _bottomRight, Point3 _topRight);
	double area;
	Point3 topLeft;
	Point3 topRight;
	Point3 bottomLeft;
	Point3 bottomRight;
	Point3 midpoint;

	MyColor radiantEnergy;
	MyColor illuminance;
};

#endif